home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / alphatextures / alpha.doc next >
Text File  |  1995-02-13  |  8KB  |  228 lines

  1.            June 30,1994
  2.  
  3.   Alpha, SetAttrb, Flicker, FogMap & BumpBuffer textures
  4.    copyright 1994, Michael Rivers
  5.  
  6.          ShareWare fee: $5(US) or more
  7.  
  8.   Send Money/Suggestions to:
  9.      Michael Rivers
  10.      4302 Wisconsin Court
  11.      Tampa, Fl, USA, 33616  
  12.  
  13.   I can be E-mailed at
  14.      mrivers@tbag.tscs.com
  15.  
  16. These textures require the Amiga floating point
  17. version of Imagine 3 (Impulse).
  18.  
  19.  
  20. This textures are freely distributable 
  21. as long as the following criteria are met:
  22.  
  23. 1. All the following files are in the archive:
  24.    Alpha.Doc
  25.    Alpha.itx.040
  26.    Alpha.itx.020.030
  27.    SetAttrb.itx
  28.    FogMap.itx
  29.    Flicker.itx
  30.    BumpBuffer.itx
  31.  
  32. 2. No fee is charged by a non-profit distributer
  33.    except media & mail fees and the reciever pays
  34.    the shareware fee.
  35.         -- or --
  36.    (with my permission)
  37.    Or the distributer pays a "bulk" shareware fee
  38.    of my determination, and may distribute it with
  39.    a commercial or non-commercial package, and 
  40.    reciever is not required to pay the shareware fee.
  41.  
  42.  
  43. =================================================
  44. Alpha Texture (v1.1)
  45.   History: 1.0 initial release.
  46.            1.1 astetical fixes.
  47.                (the numbers indicating which entry
  48.                 is valid for each operation were wrong) 
  49.            1.5 Now works with Bumps. And allows simple
  50.                restoring of attributes.
  51.  
  52. Type: Color, Filter, Reflection, Fog, Bump.
  53.  
  54. Multi-Operation texture/brush composition texture.
  55.  
  56.  
  57. Requester:
  58.  
  59. Operation:      Operations this instance of the texture will do: 0 will
  60.                 save all the current attributes of the object into a
  61.                 buffer, 1 will composite two buffers, 2 will do tinting
  62.                 and shading, 3 will simply restore a buffer(no compositing)
  63.                 to the object
  64.  
  65. Valid Entries for Operation 0 (Save):
  66.  
  67. Buffer A(0-9):  This is the buffer number in which the objects
  68.                 color,filter,reflectivity etc are to be saved.
  69.  
  70.    
  71. Valid Entries for Operation 1 (Compose)
  72.  
  73. Buffer A & B(-1,0-9):   these are the numbers of the Buffers to composite.
  74.                         -1 means to use the current color,filter, etc.
  75.  
  76. Mix Amount(0-1):        this affects how transparent Alpha Buffer A is,
  77.                         0 is completely opaic, and 1 is completely
  78.                         transparent.
  79.  
  80. AlphaChan(-1,0-9):      This specifies which buffer to use as a 
  81.                         alpha-stencil, use -1 to use the current
  82.                         color of the object 
  83.  
  84. Alpha Strength(0-1):    This specifies the strength of the AlphaChan,
  85.                         at 0 the transparency level is taken from
  86.                         Mix Amount, 1 will take the transparency
  87.                         level from the AlphaChan (keying off the
  88.                         the average of R,G,& B of the stencil).
  89.                         Intermediate values will mix the two.  
  90. Color Alphas:
  91.   Red Alpha     | These are similar to Alpha Strength but key or the red,
  92.   Green Alpha   | green, or blue of the stencil, and the results only
  93.   Blue Alpha    | modify the red, green, or blue.
  94.  
  95. Attributes:       what attributes the texture will affect.  the values
  96.                   may be added together to modify multiple attributes.
  97.                   ex: for color and filter would = 5.   
  98.  
  99. Valid Entries for Operation 2 (Tint and Shade):
  100.  
  101. Buffer A:       Which buffer to modify. -1 will use current colors
  102.                 of object.
  103.  
  104. Buffer B:       Which buffer will be used for the tint/shade map.
  105.                 -1 will use current colors of object.
  106.                 
  107.  
  108. Mix Amount:     How strong the tint/shade map is. a value of 1 will give
  109.                 results as follows:
  110.  
  111.                  Buffer A             Buffer B           result
  112.                 --------------------------------------------------
  113.                    red                 white         =    white   
  114.                    red            grey(128,128,128)  =     red
  115.                    red                 black         =    black  
  116.  
  117.                 lower values will have less pronounced effects.
  118.  
  119.  
  120. Valid Entries for Operation 3 (Restore buffer):
  121.  
  122. Buffer A:       Which objects attributes to place on the object.
  123.                 valid values 0-9
  124.  
  125. Attributes:     Which Attributes to apply to the object from the buffer
  126.                 for multiple attributes add the attributes values together
  127.  
  128. -------------------------------------------------------------------
  129. Example Attribute lists
  130.  
  131. This will composite the checks and fireball textures 50/50:
  132.  
  133.   Checks  - default settings
  134.   Alpha   - Operation 0, Buffer A 0
  135.   Fireball- default settings 
  136.   Alpha   - Operation 0, Buffer A 1
  137.   Alpha   - Operation 1, Buffer A 0, Buffer B 1, Mix Amount .5,
  138.             Attributes=1
  139.  
  140.   -or-
  141.   
  142.   Checks  - default settings
  143.   Alpha   - Operation 0, Buffer A 0
  144.   Fireball- default settings 
  145.   Alpha   - Operation 1, Buffer A 0, Buffer B -1, Mix Amount .5,
  146.             Attributes=1
  147.  
  148.  
  149. This is how a stencil can be used:
  150.  
  151.   Checks  - default settings
  152.   Alpha   - Operation 0, Buffer A 0
  153.   Fireball- default settings 
  154.   Alpha   - Operation 0, Buffer A 1
  155.   A brushmap with various shades of grey, used for stencil.
  156.   Alpha   - Operation 1, Buffer A 0, Buffer B 1, Alpha Chan -1,
  157.             Alpha Strength=1, Attributes=1
  158.  
  159. Composing textures with bumpy attributes is more difficult:
  160.  
  161.   BumpBuffer - Operation=0, Buffer=0
  162.   Leather    - default settings
  163.   Alpha      - Operation=0, BufferA=0
  164.   BumpBuffer - Operation=1, Buffer=0
  165.   SetAttrib  - Set Color as you prefer
  166.                (bathtile.itx uses the color already on the object
  167.                 for the color of the tiles, so this texture is
  168.                 used to change the object color,refl... so previous
  169.                 textures won't show through the bathtile)  
  170.   BathTiles  - rotate axis on X 90 degrees
  171.   Alpha      - Operation=0, BufferA=1
  172.   (insert a greyscale picture or texture for the alpha channel here)
  173.   Alpha      - Operation=1, BufferA=0, BufferB=1, AlphaChan=-1,
  174.                Alpha Strength=1, Attributes=9 (Color+Bumps,1+8)
  175.  
  176. ====================================================
  177. SetAttributes texture
  178.  
  179. this texture allows you to set certain attributes of an object. It was
  180. created because many of Impulse's textures (like wood) use the
  181. color,filter, refl, etc values already on the object, which makes the alpha
  182. texture difficult to use.
  183.  
  184. ====================================================
  185. FogMap texture
  186.  
  187. History: 1.0 original
  188.          1.1 the fog len is now scaled when the object is scaled(sized).
  189.  
  190. takes the color of the object to determine the fog length
  191.  
  192. Black Fog Length : Fog length where the object is black
  193. White Fog Length : Fog Lenght whare the object is white
  194.  
  195. Note: The objects Fog Length must be non-zero in order for
  196.       this texture to work
  197.  
  198. ====================================================
  199. Flicker Texture
  200.  
  201. this texture causes the objects attributes to flicker
  202. between those already on the object and the attributes
  203. specified in this requester.
  204.  
  205. the foglen value of this texture will have no effect
  206. unless the objects foglen is greater than 0
  207.  
  208.  
  209. ====================================================
  210. BumpBuffer Texture
  211.  
  212. this texture is used to save and restore the bumps of
  213. an object.  It is required when using the Alpha texture
  214. to composite bumps this is because bumpy textures modify
  215. the bumpiness of the object, so if a bump is already their
  216. it may make it more bumpy, or even flatten out the bump.
  217. thus,this texture can be stuck in the texture/brushmap at
  218. priority 1 to save the bumpiness of the object(or the
  219. flattness in this case), a bumpy texture can be placed at
  220. priority 2, anf finallt this texture can again be applied
  221. at priority 3 to restore the flattness of the object.
  222. Although the Alpha texture itself can be used for this
  223. purpose, this texture was created to reduce confusion
  224. in the texture/brushmap list.
  225.  
  226. Operation: what this instance of the texture does.
  227.  
  228. Buffer: which buffer to store or restore the bump.